import axios from '../config.js'

export function payOrder(pay_way, order_id,code,pay_password) {
    const url = 'mobile/Order/payOrder'
    const data = {
        pay_way: pay_way,
        order_id: order_id,
        code: code,
        pay_password: pay_password

    }
    return axios.post(url, data)
}
export function getOrderID(address_id, cartGoodsIds) {
    const url = 'mobile/Order/createOrder'
    const data = {
        address_id: address_id,
        cartGoodsIds: cartGoodsIds
    }
    return axios.post(url, data)
}

export function getZfbUrl(oppUrl){
    const url = oppUrl
//  const data = {
//      address_id: address_id,
//      cart_ids: cart_ids
//  }
    return axios.post(url)
}

